<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> 
<%@ page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd style="text-align:center"">
<html>
<head>
<title>称号配置</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<script type="text/javascript">
function addConf() {
	var params = {
			id : $("#honorId").val(),
			text : $("#honorText").val()
		}
		$.getJSON("/admin/honor/conf/add.do",params,function(data){
			if(data.msg=="success") {
				location.reload();
			} else {
				alert(data.msg);
			}
		});
}
</script>
</head>
<body>
<jsp:include page="_head.jsp"></jsp:include>
	<div>
	<form id="form1" name="form1" method="post" action="" style="padding:0 0 10px 0">
		ID(6000+)：<input type="text" id="honorId" value="${honorId}" readOnly="readonly" maxLength="4" size="5"/>
		称号名称：<input type="text" id="honorText" maxLength="30"/>
		<input type="button" name="button1" id="button" value="提交" class="btn" onclick="addConf()"/>
	</form>
	</div>
	<table class="table table-bordered">
		<thead>
			<tr>
			<td width="150"><strong>称号ID</strong></td>
			<td><strong>称号名称</strong></td>	
			</tr>
		</thead>
		<tbody id="body_id">
		<c:forEach var="entry" items="${data}">
			<tr>
			<td>${entry.honorId}</td>
			<td>${entry.honorText}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
</body>
</html>
 
